﻿using DAL;
using IService;
using Microsoft.EntityFrameworkCore;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class GroupMenuService : IGroupMenuService
    {
        GroupMenuDal _gm = new GroupMenuDal();

        public Task<GroupMenu> CreateAsync(GroupMenu groupMenu)
        {
            return _gm.CreateAsync(groupMenu);
        }

        public Task DeleteAsync(int groupId)
        {
            return _gm.DeleteAsync(groupId);
        }

        public Task<List<GroupMenu>> GetAllAsync()
        {
            return _gm.GetAllAsync();
        }

        public Task<GroupMenu> GetByIdAsync(int groupId)
        {
            return _gm.GetByIdAsync(groupId);
        }

        public Task UpdateAsync(GroupMenu groupMenu)
        {
            return _gm.UpdateAsync(groupMenu);
        }
    }
}